class CreateContests < ActiveRecord::Migration
  def self.up
    create_table :contests, :primary_key => :contest_id do |t|
      t.column :set_code, :string,:null => false,:limit =>64
      t.column :name, :string, :null => false,:limit => 128
      t.column :start_time,:datetime,:null => false
      t.column :duration,:integer,:null => false
      t.column :show_sources,:integer, :null => false
      t.column :about, :text, :null => false
    end
  end

  def self.down
    drop_table :contests
  end
end
